libxl: fork: Break out checked_waitpid
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 16 Jan 2014 16:37:44 +0000 (16:37 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 6 Feb 2014 14:20:18 +0000 (14:20 +0000)
commit8398e64dff171eb6e63238f4c9b4478403a88201
tree34dc15eda3bdbe3c4f68c8e75aa55b8bd92e0557
parenta06b42584164e21e792dfe66bb8e3585127270b1
libxl: fork: Break out checked_waitpid

This is a simple error-handling wrapper for waitpid.  We're going to
want to call waitpid somewhere else and this avoids some of the
duplication.

No functional change in this patch.  (Technically, we used to check
chldmode_ours again in the EINTR case, and don't now, but that can't
have changed because we continuously hold the libxl ctx lock.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Jim Fehlig <jfehlig@suse.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_fork.c